package com.lyn.anr

import com.lyn.anr.handler.AnrHandler
import com.lyn.anr.interfaces.InvokeListener

/**
 * anr 帮助类
 * @author longyn 2025/07/16
 * @version 1.0.0
 */
object AnrHelper {

    /**
     * 初始化
     */
    @JvmStatic
    fun initialize(invokeListener: InvokeListener) {
        AnrHandler.invokeListener = invokeListener
    }

    /**
     * 设置耗时阈值 ms
     */
    @JvmStatic
    fun setThreshold(threshold:Long){
        AnrHandler.threshold = threshold
    }
}